<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "tmp_student".
 *
 * @property int $id
 * @property int $student_id 用户id
 * @property int $state 0为未分配，1为已分配
 * @property string $name 名字
 * @property string $email 邮箱
 */
class TmpStudent extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'tmp_student';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['student_id', 'name', 'email'], 'required'],
            [['student_id', 'state'], 'integer'],
            [['name', 'email'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'student_id' => 'Student ID',
            'state' => 'State',
            'name' => 'Name',
            'email' => 'Email',
        ];
    }
}
